package au.com.iglootech.winerymap.ui.view.winerymanage;

import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;

/**
 * 
 * @author zhuhome
 * 
 */
public class WineryManagePage extends CustomComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1841597432073326861L;
	private final VerticalLayout mainLayout = new VerticalLayout();

	/**
	 * constructor.
	 */
	public WineryManagePage() {

		initContent();
	}

	/**
	 * 
	 */
	private void initContent() {
		Panel panel = new Panel();
		TabSheet ts = new TabSheet();
		ts.setSizeFull();
		ts.addStyleName("bar");
		ts.addComponent(new CreateWineryTab());
		ts.addComponent(new ManageWineryTab());
		panel.addComponent(ts);
		mainLayout.addComponent(panel);
		this.setCompositionRoot(mainLayout);
	}

}
